﻿using Ducu.BLL.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ducu.BLL.NHMap
{
    class TaskMap : EntityMap<Task>
    {
        public TaskMap()
        {
            HasMany(m => m.History).Inverse();
            Map(m => m.CompleteDate).Index("IX_Task_CompleteDate");
            References(m => m.Plan);
            Map(m => m.Status);
        }
    }
}
